Spectrometer signal quality improvement via background subtraction

ABSTRACT

A spectrometer collects background spectra during the idle time in which it is not collecting spectra from a sample. These spectra are collected over a range of exposure times, allowing the background reading on each pixel to be modeled as a function of exposure time. When sample spectra are then collected, the exposure time for the sample spectra can be used with the modeled function to compute an estimated background within the sample spectra. The estimated background can then be subtracted from the sample spectra, thereby reducing the noise therein.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority under 35 USC §119(e) to U.S. Provisional Patent Application 60/778,766 filed 3 Mar. 2006, and to U.S. Provisional Patent Application 60/781,256 filed 10 Mar. 2006, the entirety of these applications being incorporated by reference herein.

FIELD OF THE INVENTION

This document concerns an invention relating generally to molecular spectrometry, and more specifically to signal quality improvement for molecular spectrometers, e.g., Raman spectrometers, UV-Vis (ultraviolet/visible spectrum) spectrometers, and other spectrometers.

BACKGROUND OF THE INVENTION

Molecular spectrometry is a well-known technique used to identify the characteristics of gas, liquid, and solid samples, wherein light is directed at a sample and the light reflected from, scattered by, and/or transmitted through the sample is then picked up by a photosensitive detector to be analyzed for changes in wavelength. These changes may provide information regarding the composition of the sample, its chemical bonds, and other features. As an example, FIG. 1 illustrates an example of a spectrum (sometimes referred to as an “exposure,” or simply a “reading”) obtained from a Raman spectrometer, wherein a laser is directed at a sample and the detector captures data regarding the light scattered from the sample. Here the spectrum data is presented as a plot of light intensity versus light wavelength, with wavelength being represented by pixel numbers from the detector (which is made of an array of detector elements/pixels, such as an array of CCD elements). The spectrum, and in particular the locations and amplitudes of the “peaks” therein, can be compared to libraries of previously-obtained reference spectra to obtain information about the sample, such as its identity and characteristics.

One issue with spectra captured by molecular spectrometers, and in particular Raman spectrometers, is that the spectra can be difficult to interpret owing to weak signals (i.e., the “peaks” present in FIG. 1), and/or high noise (the “background” shown between the peaks). In general, the higher a spectrum's signal-to-noise ratio, the easier it is to match it to reference spectra or otherwise process/interpret the spectrum. To understand the factors affecting spectral signals and noise, it is useful to further examine how a spectrometer collects a spectrum. Typically, the detector element/pixel array is exposed to the light from the sample for a period of time (the “exposure time”), and then the accumulated/integrated charge on each element or pixel is converted into a digital signal (which can then be presented in a form similar to FIG. 1, if desired). This signal at each pixel is typically proportional to the light intensity thereon, but the signal is subject to both systematic and random errors, giving rise to the background noise. One common systematic error is dark current, which is a steady accumulation of charge on an element/pixel even when there is no incident light on the pixel. Dark current is intrinsic to the operation of many photosensitive detectors, and thus is difficult or impossible to eliminate. Another common systematic error is electronic offset: each pixel's deviation from the sensitivity value that it was intended to have during manufacture. In other words, offset arises from variations in materials, manufacturing processes, and other factors which generate minor deviations from pixel to pixel, making certain pixels more sensitive than others. As for random errors, these can arise for many reasons, with a common example being cosmic rays: ambient charged particles which periodically strike a pixel and give rise to a transient, but often high, intensity reading at the pixel in question. These systematic and random errors are unique to each array pixel, and they combine to contribute to the noise (which is often referred to as the “background” or “background spectrum,” though it contains no true spectral data).

To reduce the effect of these errors, it is common to employ a “background subtraction” scheme. After the spectrometer captures an exposure (i.e., provides light to the detector to collect spectra from a sample), the detector is shuttered or otherwise isolated so that data can be collected from the detector without having any light incident thereon. Such data provide a background spectrum which should (ideally) reflect the systematic component of the background in a sample exposure, provided the sample exposure and the background exposure had the same exposure time. One can then compensate for the random component of the background by taking several background exposures (again ideally having the same exposure time) and combining them by averaging or similar methods, or otherwise processing them to remove aberrational pixel intensities. Pixel-by-pixel subtraction of the combined background exposures from the sample spectra can then assist in reducing the background.

In similar respects, it is also useful to collect several exposures from a sample, all having the same exposure time, and then combining the collected spectra (e.g., by averaging or simply summing them). The resulting combined spectrum diminishes the effect of random noise and exhibits an improved signal-to-noise ratio relative to the individual component spectra. The aforementioned background subtraction scheme can then be applied to the combined spectrum to further enhance the signal to noise ratio.

However, both background subtraction and spectral combination bear disadvantages. In both cases, the methods for combining the spectra—as by averaging the sample exposures and/or background exposures—take a significant amount of time owing to the need to collect multiple exposures. From the standpoint of the spectrometer operator, this represents time that the spectrometer is unavailable for use. With respect to backgrounds, a combined background could be generated once and stored for subsequent use, but it is unique to the sample exposure time selected by the spectrometer operator. Thus, to use a combined background which has been stored in advance, an operator is limited to use of sample exposure times equivalent to the background exposure times used for the component backgrounds of the combined background. For reasons discussed below, it is undesirable to be limited to a particular sample exposure time. Thus, if the operator wants to change the sample exposure time, a new background (or backgrounds) having the same exposure time must be collected.

Better signal to noise ratios can also be obtained by increasing the exposure time. However, there are practical limits on exposure time. Initially, if one increases sample exposure time, the background exposure time must be increased to match in order to subsequently achieve proper subtraction (as discussed above). The aggregate time to reach the final “noise-cleaned” spectrum is further increased if the aforementioned combination methods are used (e.g., averaging, summing, or similar methods), since the multiple sample exposures and/or background exposures used to make the combination—which, again, should have the same exposure time—lead to a geometric increase in overall time. Further, a specified exposure time may be too large for the sample being measured: the strength of the signals (the height of the peaks) can exceed the capacity of the spectrometer electronics, resulting in an overflow condition and an invalid spectrum. The spectrometer operator is then required to reduce the exposure time and repeat the measurement, leading to even further lost time.

SUMMARY OF THE INVENTION

The invention, which is defined by the claims set forth at the end of this document, is directed to methods and systems which at least partially alleviate the aforementioned problems, and assist in the ability to generate spectra with improved signal to noise ratios. To give the reader a basic understanding of some of the advantageous features of the invention, following is a brief summary of preferred versions of the invention. Since this is merely a summary, it should be understood that more details regarding the preferred versions may be found in the Detailed Description set forth elsewhere in this document. The claims set forth at the end of this document then define the various versions of the invention in which exclusive rights are secured.

Initially, the invention provides methods and systems which allow the time needed for collection of background exposures to be greatly reduced, or even effectively eliminated, by collecting background exposures during the spectrometer's “idle time”—the time when the spectrometer is powered up, but is not collecting spectra from a sample. To operate a conventional spectrometer, an operator must first power it up (turn it on and otherwise place its components in condition to collect data from the detector), and then instruct the spectrometer to collect one or more spectra from a sample over a data collection time. This data collection time is generally equal to the exposure time, or the sum of the exposure times, specified by the operator or the spectrometer settings. The remaining time while the spectrometer is powered up is the idle time; in other words, powered time−data collection time=idle time. Ordinarily, the background exposure(s) must be collected during idle time occurring after the data collection time, since the sample exposure time must be known in order to take background exposures having the same exposure time. However, in the invention, background readings may be taken during background exposure times occurring within the idle time before and/or after the data collection time, and also they need not have the same duration as the sample exposure time (and preferably do not have the same duration, at least for some of the background readings). Most preferably, the background exposure times vary between at least some of the detector background readings, as by cycling through a range of background exposure times which vary within and/or about some range of conventional sample exposure times. The background readings at each element/pixel of the detector are then stored for each of the background exposure times. These background readings are preferably taken continuously, or nearly so, during the entire idle time while the spectrometer is powered. An example of this process is illustrated schematically in FIG. 2A, wherein a timeline is shown along a time axis t, with idle times I and a data collection time DC being shown along the time axis. During the idle time I, the spectrometer repeatedly collects background readings N₁, N₂, . . . , N_(n) having varying exposure times Tb₁, Tb₂, . . . , Tb_(n). This is also depicted in the process diagram of FIG. 2B at 200.

At some point, the operator will have the spectrometer collect a spectrum from a sample, or perhaps multiple spectra in the event where combination of the sample spectra is desired (in which case the sample spectra will have the same sample exposure time). In FIG. 2A, the collection of the spectrum is depicted by the sample spectrum S_(s) having sample exposure time T_(s) (a step which is also presented in FIG. 2B at 210).

To remove the background from the sample spectrum S_(s), a reference background reading N_(s) may then be generated from the collected background readings N₁, N₂, . . . , N_(n) and their background exposure times Tb₁, Tb₂, . . . , Tb_(n). This reference background reading N_(s) is not truly a reading in the sense that it is not directly collected from the detector, and is rather an artificial/predicted value corresponding to a collected background reading N occurring at a background exposure time Tb which is at least substantially equal to the sample exposure time T_(s). This is schematically depicted in FIG. 2A by the function N(Tb), which consists of the various background readings N collected at the various background exposure times Tb for each of the detector elements/pixel p₁, P₂, . . . , p_(n) (also see step 220 in FIG. 2B). The reference background reading N_(s) may be generated from N(Tb), as at step 230 in FIG. 2B, by looking up the background reading N corresponding to the sample exposure time T_(s) at each element/pixel of the detector. More preferably, since there may not be a previously collected background reading N having a background exposure time Tb precisely corresponding to the sample exposure time T_(s), the reference background reading N_(s) is obtained by extrapolating from the previously collected background readings N at each pixel. For example, the function N(Tb) representing the reference background reading vs. exposure time relationship can be derived from the collected background readings at each element/pixel by use of regression methods, and the sample exposure time T_(s) can be used in the derived function N(Tb) to obtain the reference background reading N_(s) at each element/pixel.

The reference background reading N_(s) can then be subtracted from the sample spectrum S_(s) (as at step 240 in FIG. 2B) to obtain a sample spectrum with background noise at least partially removed, and thereby having an improved signal to noise ratio. This “noise-cleaned” spectrum may then be stored, displayed, or otherwise used (step 250 in FIG. 2B). Since the invention collects background readings N during the idle time I with a variety of background exposure times Tb, rather than being limited to collecting background readings N only after the data collection time DC, and only having the same exposure time Tb as the sample exposure T_(s), the speed of data collection and the generation of the final spectrum is substantially enhanced.

The invention also involves methods and systems for collecting spectra having a desired signal to noise ratio, with the desired signal to noise ratio being achieved by the appropriate tailoring of the sample exposure time, and/or of the number of sample exposures to be combined to acquire the final spectrum (which may then be subjected to the background subtraction method discussed above, if desired, to further enhance the effective signal to noise ratio). A preferred version of these spectral collection methods is outlined in the flowchart of FIGS. 3A and 3B, and will now be briefly reviewed.

Initially, a sample reading is collected over a sample exposure time Ts₀, which is preferably short (FIG. 3A, step 305). The sample reading is then analyzed to determine its signal to noise ratio SN₀, as by identifying the peak in the sample spectrum having greatest magnitude (Ss₀), determining the overall magnitude of the spectrum with the peaks absent (Ns₀, i.e., the magnitude of the background noise), and calculating the ratio SN₀=Ss₀/Ns₀ (FIG. 3A, steps 310, 315, and 320).

A limiting exposure time Tslim is then calculated,. with Tslim representing the greatest exposure time that can be handled by the spectrometer without overflow (or high risk of overflow). Here, as shown at step 325 of FIG. 3A, if Smax is the maximum signal level that can be properly handled by the spectrometer, it can be assumed that Tslim/Smax is at least substantially proportional to Ts0/Ss0, and thus: Ts _(lim) =K*Smax*Ts ₀ /Ss ₀(with 0<K1) Here, K can be regarded as a “scaling factor” which can help avoid saturation of the spectrometer as the value of K decreases below 1.

The limiting exposure time Ts_(lim) is then used to calculate a limiting signal to noise ratio SN_(lim), wherein SN_(lim)/sqrt(Ts_(lim)) is presumed to be at least substantially proportional to SN₀/sqrt(Ts₀). As shown in step 330 of FIG. 3A, SN_(lim), which represents the signal to noise ratio expected for a sample exposure time of Ts_(lim), is preferably approximated by: SN _(lim) =SN ₀*sqrt(Ts _(lim))/sqrt(Ts ₀)

The next steps differ depending on whether the signal to noise ratio SNd desired by the spectrometer operator is greater or less than SN_(lim) (with SNd usually being specified/known by the spectrometer operator at the outset of the process, as shown at step 300 of FIG. 3A). If SNd is greater than or equal to SN_(lim), then it is known that SNd cannot be achieved with a single sample reading having an exposure time of Ts_(lim). As shown at steps 335 and 340, the number of sample readings N_(exp) that need to be acquired to attain SNd, assuming each sample reading has exposure time Ts_(lim), can be approximated as: Nexp=(SNd/SN _(lim))^2 If Nexp is not substantially equal to an integer value, it is rounded to an integer value, most preferably by rounding down to the closest integer.

On the other hand, if SNd is less than SN_(lim), only a single sample reading (Nexp=1) having an exposure time of Ts_(lim) should be sufficient to achieve a signal to noise ratio greater than or equal to SNd (steps 335 and 350 of FIG. 3B). If it is desired to achieve a signal to noise ratio which closely approximates SNd rather than exceeding it, a new Ts_(lim) can be calculated by assuming that SNd/sqrt(Td) is at least substantially proportional to SN₀/sqrt(Ts₀, where Td is the exposure time predicted to yield the desired signal to noise ratio, and then solve for Td (and reset Ts_(lim) to this value). A preferred way to apply this relationship, as shown in step 355 of FIG. 3B), is to assume: Ts _(lim) =Ts ₀(SNd/SN ₀)^2 and a single sample reading (Nexp=1) can then be taken with a sample exposure time of Ts_(lim).

The Nexp sample readings can then be collected (step 360 of FIG. 3B), with each reading having an exposure time at least substantially equal to Ts_(lim), and can be combined by averaging, summing, or other combination methods to obtain a combined spectrum (step 365 of FIG. 3B). The resulting combined spectrum should have a signal to noise ratio at or approximating the desired signal to noise ratio SNd. If it should be found that the combined spectrum has a signal to noise ratio less than the desired signal to noise ratio SNd, as shown at steps 370 and 375, some number Nadd of additional sample readings can be taken (again with each having a sample exposure time of Ts_(lim)) until their combination Nexp+Nadd has a signal to noise ratio suitably approximating the desired signal to noise ratio SNd.

The spectral collection method can also accommodate an operator's specification of a desired data collection. time DCd (e.g., a maximum allowable data collection time), and can adapt the readings to fit within this time. If Nexp*Ts_(lim)—which is the nominal data collection time—exceeds DCd, Nexp can be redefined as an integer less than or equal to DCd/Ts_(lim) (step 345 in FIG. 3A). (If it is acceptable to slightly exceed DCd, Nexp can be redefined as DCd/Ts_(lim) rounded up to the next higher integer.) On the other hand, if Nexp*Ts_(lim) is less than DCd, additional sample readings may be taken within the remaining time DCd−(Nexp*Ts_(lim)).

If desired, the background subtraction method discussed above can then be applied to the final combined sample spectrum. In this respect, it is notable that the background subtraction method is very well suited for use with the spectral collection method, and the methods provide a synergistically beneficial result when used together: since the spectral collection method results in some sample exposure time Ts_(lim) which was initially unknown, as a practical matter, one cannot collect background readings having an exposure time equal to Ts_(lim) beforehand. Thus, the background subtraction method can be applied, with N(Ts_(lim)) being calculated at each element/pixel of the detector and being subtracted from the final combined sample spectrum to “clean” it of background noise, without the need to collect background readings (or to exceed any operator-specified data collection time DCd).

Further advantages, features, and objects of the invention will be apparent from the remainder of this document in conjunction with the associated drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 depicts an exemplary spectrum collected from a sample by a Raman spectrometer.

FIG. 2A is a diagram schematically depicting the background subtraction process of the invention, wherein background readings N₁, N₂, . . . , N_(n) having varying exposure times Tb₁, Tb₂, . . . , Tb_(n) are collected during idle times I along a timeline t and used to derive a function N=f(Tb), a sample reading S_(s) having sample exposure time T_(s) is collected during a data collection time DC, and a background reading N_(s) corresponding to the sample exposure time T_(s) is calculated from N_(s)=N(T_(s)), with the calculated background reading then being subtracted from the sample reading S_(s) to at least partially remove the background.

FIG. 2B is a process diagram further depicting the background subtraction process of FIG. 2A.

FIGS. 3A and 3B are respectively first and second portions of a process diagram illustrating exemplary steps of the spectral collection method discussed above, wherein a spectrum may be generated which has the desired signal to noise ratio SNd (and the desired data collection time DCd, if the spectrometer operator wishes) by collecting some number of sample readings N_(exp); each having a sample exposure time of T_(slim).

DETAILED DESCRIPTION OF PREFERRED VERSIONS OF THE INVENTION

Expanding on the discussion above, in the background subtraction method, it is preferable to collect background readings almost constantly while the spectrometer is on, save for during the times when sample readings are being collected from samples. The controls of most spectrometers can be reprogrammed or otherwise adapted to implement this collection scheme, with the Nicolet Almega spectrometer (Thermo Scientific, Madison, Wis., USA) being an example of a spectrometer which can be beneficially adapted to execute the background subtraction method (as well as the spectral collection method). Thus, the invention may be provided in the form of software, or in firmware/hardware form, e.g., in the form of an Application Specific Integrated Circuit (ASIC) for use in performing spectrometer control functions.

The foregoing discussion notes that the background readings N are preferably collected by continuously cycling through ranges of background exposure times Tb. FIG. 2A depicts the background exposure times Tb₁, Tb₂, . . . , Tb_(n) starting at some minimum background exposure time Tb₁, and then being incrementally increased until some maximum background exposure time Tb_(n) is reached, at which point the cycle begins again with a background reading having duration Tb₁. A cycle starting with some maximum Tb₁, and ending with a minimum Tb_(n), is also possible, as are oscillating cycles wherein the background exposure times Tb continuously increase and decrease about some average value (i.e., Tb increases from a minimum to a maximum, and then decreases to the minimum again, followed by another increase to the maximum, etc.). Another possibility is to have background exposure times Tb oscillate with increasing amplitude about an average value whish is set equal to the last sample exposure time used by the spectrometer—in other words, a cycle could start with a mean background exposure time Tb₁ equal to the last sample exposure time T_(s) used by the spectrometer, then have Tb₂ slightly increase above Tb₁, then have Tb₃ decrease to a value less than Tb₁, then have Tb₄ increase to a value greater than Tb₂, then Tb₅ is less than Tb₃, and so forth. It is also possible to have background exposure times Tb simply randomly vary within some desired range. All of these are merely examples, and it should be understood that other variations are possible.

In similar respects, it should be understood that the sample reading S_(s)—or sample readings S_(s1), S_(s2), . . . , S_(sn) for possible later combination—may occur at any desired times along the timeline t. In the example of FIG. 2A, the collection of the sample reading S_(s) occurs after background reading N₂, and before background reading N₃, within the second cycle of background readings simply because this is when the operator instructed the spectrometer to take a reading from the sample. The data collection time DC, and the sample reading (or readings) therein, can occur after and/or prior to the collection of any background readings. It is also possible that multiple sample readings which are intended for combination could be interrupted by background readings, in other words, that the data collection time DC could be interrupted by background readings.

It should also be understood that N(Tb), i.e., the reference background reading vs. exposure time relationship, could use the most recently stored background readings N₁, N₂, . . . , N_(n) (e.g., only those background readings which were collected during the idle time since the spectrometer was last turned on). Alternatively, N(Tb) could use background readings from several or all prior cycles, as by combining (e.g., averaging) all background readings N having the same background exposure times Tb that were collected since the spectrometer went into service. In such an arrangement, the reference background reading vs. exposure time relationship N(Tb) could be periodically “refreshed” to compensate for the possibility of detector drift. For example, the spectrometer could periodically discard older collected background readings, and rederive N(Tb) using more recent collected background readings and their background exposure times. As these examples illustrate, a variety of background collection schemes are possible, and it should be understood that yet other schemes could be used, with their choice perhaps being discretionary on the part of the spectrometer operator.

In FIG. 2A, N(Tb) at each element/pixel p₁, P₂, . . . , p_(n) is depicted as being linear. It has been found that a linear N(Tb) does work adequately in most circumstances, at least for the aforementioned Nicolet Almega spectrometer mentioned above. However, N(Tb) is not strictly linear, particularly at lower background exposure times Tb. It is therefore preferred to represent N(Tb) by an exponential relationship or by an nth-order polynomial curve-fit (with a quadratic fit being found to work well).

Additionally, the foregoing discussion assumes that the temperature of the detector—which has a strong impact on dark current—is held constant during collection of the background readings and sample reading(s). If the detector temperature DT is allowed to vary, it may be necessary to model N as a function of both background reading exposure time Tb and of detector temperature DT, i.e., N=f(Tb, DT)=N(Tb, DT). As more background readings with different exposure times and detector temperatures are stored, the spectrometer's ability to estimate background noise at different sample reading times and detector temperatures should increase. The noise model N=f(Tb) (or N=f(Tb, DT)) could accommodate other parameters apart from Tb and/or DT, if desired.

FIG. 2B implies that processing steps 220, 230, 240, and 250 occur outside of the idle time I when background readings are collected, and outside of the data collection time DC when one or more sample readings are collected. It should here be understood that these steps may occur simultaneously with one or both of the idle time I and/or the data collection time DC, and could occur simultaneously with the collection of readings and/or at other times. In other words, the processing steps 220, 230, 240, and 250 can occur at any desired time, subject only to the data processing limitations of the spectrometer (and/or any associated data processing equipment).

The background subtraction method offers significant benefits for spectrometer operation, regardless of whether it is used with the spectral collection method or otherwise. As previously noted, the value of the spectral collection method is enhanced when used in combination with the background subtraction method, since the spectral collection method results in some sample exposure time Ts_(lim) which was previously unknown, and therefore one cannot collect background readings having the same exposure time beforehand. Use of the background subtraction method allows background readings to be rapidly generated regardless of what value of Ts_(lim) results. Even where the background subtraction method is not used with the spectral collection method, it still offers the advantage that it eliminates the inconvenience of waiting for background reading collection during routine use of a spectrometer. Also, a typical spectrometer spends significant time in an idle state, and the background subtraction method uses this time to collect multiple sets of background readings, which in turn helps reduce random noise in the subtracted background spectrum. This is significant because random noise in the background spectrum multiplies the overall noise of the subtracted spectrum by the square root of 2, or roughly 40%. If sufficient sets of background readings are collected, the random noise contribution from the background can be rendered insignificant, providing an effective sensitivity gain for the spectrometer.

Turning to the spectral collection method of FIGS. 3A and 3B, this may be used to determine the number of sample readings Nexp needed with sample exposure time Ts_(lim) in order to obtain a desired signal to noise ratio SNd, either with or without consideration of some desired data collection time DCd (e.g., a maximum data collection time). In similar respects, it is also possible to use the principles of the spectral collection method to collect some number of sample readings Nexp having sample exposure times Ts_(lim) wherein signal to noise ratios are maximized, and wherein these sample readings meet any constraints imposed by any desired data collection time DCd. Here, steps 305-325 of FIG. 3A can be followed to obtain a limiting exposure time Ts_(lim), and then Nexp sample readings can be collected, wherein Nexp is an integer equal to or approximating DCd/Ts_(lim) (and wherein each reading is collected over an exposure time at least substantially equal to Ts_(lim)).

In both the background subtraction and spectral collection methods, the steps of these methods are not in all cases limited to the orders implied in the accompanying Figures. As examples, the data collection time DC could occur prior to the idle time I shown in FIG. 2A, and the specification of the desired signal to noise ratio SNd need not occur at the outset of the method as shown in FIG. 3A. Thus, it should be understood throughout this document, and particularly in the claims set forth below, that the steps of the methods need not occur in the order in which they are set forth unless they are limited to a particular sequence by language or necessity.

The foregoing background subtraction and spectral collection methods are particularly useful in Raman spectrometers, spectrometers operating in the ultraviolet and/or visible light ranges (e.g., UV-Vis spectrometers), and other spectrometers which tend to use integrating detectors (i.e., detectors having elements which integrate charge over time). However, the methods can be extended to other types of spectrometers as well, so long as the aforementioned steps are adapted to the spectrometer in question. As an example, the spectral collection method can be applied to in a Fourier Transform Infrared (FT-IR) spectrometer, but here ADC (Analog to Digital Converter) input gain and number of scans—which are respectively analogous to exposure time and number of exposures—might be used.

The invention is not intended to be limited to the preferred versions described above, but rather is intended to be limited only by the claims set out below. Thus, the invention encompasses all different versions that fall literally or equivalently within the scope of these claims. 

1. A spectrometry method wherein a spectrometer is powered during: i) a data collection time wherein one or more spectra from a sample are collected by a detector, and ii) an idle time wherein no spectra from the sample are collected by the detector, the method comprising the steps of: a) collecting detector background readings with a detector during background exposure times occurring within the idle time, wherein the background exposure times are provided by continuously cycling through ranges of background exposure times before and/or after the data collection time; b) providing a spectrum from a sample, the spectrum being generated from one or more spectra collected from a sample during the data collection time, wherein each of the spectra have the same sample exposure time; c) generating a reference detector background reading from the collected detector background readings and their background exposure times, wherein the reference detector background reading corresponds to the collected detector background reading occurring at the background exposure time which is at least substantially equal to the sample exposure time.
 2. The method of claim 1 further comprising the step of subtracting the reference detector background reading from the spectrum.
 3. The method of claim 2 wherein: a) the spectrum is generated from at least two spectra collected from the sample during the data collection time, and b) the spectra are averaged to generate the spectrum.
 4. The method of claim 1 wherein the step of generating a reference detector background reading further comprises the steps of: a) deriving a reference detector background reading vs. exposure time relationship from the collected detector background readings and their background exposure times; and b) calculating the reference detector background reading from: (1) the sample exposure time, and (2) the reference detector background reading vs. exposure time relationship.
 5. The method of claim 4 further comprising the step of rederiving the reference detector background reading vs. exposure time relationship using more recent collected detector background readings and their background exposure times.
 6. The method of claim 4 wherein the detector background reading vs. exposure time relationship is an nth order polynomial relationship, with n being greater than or equal to
 1. 7. The method of claim 1 wherein the step of generating a reference detector background reading further comprises the steps of: a) storing values representative of the collected detector background readings and their background exposure times; b) selecting from the stored values the collected detector background readings having background exposure times most closely corresponding to the sample exposure time; and c) using these selected detector background readings to derive the reference detector background reading.
 8. The method of claim 7 further comprising the step of: a) deleting at least some of the stored values representative of the collected detector background readings and their background exposure times; and b) storing new values representative of the collected detector background readings and their background exposure times.
 9. The method of claim 1 wherein the idle time consists of at least substantially all of the time while the spectrometer is powered except for the data collection time.
 10. The method of claim 1 wherein: a) the detector includes an array of photosensitive elements therein, and b) the steps of: (1) collecting background readings, (2) collecting a spectrum from the sample, and (3) subtracting a reference detector background reading, are performed for each of the photosensitive elements within the array.
 11. The method of claim 1 wherein: a) the detector includes an array of photosensitive elements therein; b) the collected detector background readings are collected at each of the photosensitive elements within the array; and c) the reference detector background reading is derived at each of the photosensitive elements within the array.
 12. The method of claim 1 wherein the spectrometer is one of: a) a Raman spectrometer, and b) a UV-Vis spectrometer.
 13. A spectrometry method wherein a spectrometer is powered during: i) a data collection time wherein one or more spectra from a sample are collected by a detector, and ii) an idle time wherein no spectra from the sample are collected by the detector, the method comprising the steps of: a) collecting detector background readings with a detector during background exposure times occurring within the idle time, wherein the background exposure times vary between at least some of the detector background readings by continuously cycling through ranges of oscillating increasing and decreasing background exposure times before and/or after the data collection time; b) collecting a spectrum from a sample with the detector during a sample exposure time occurring within the data collection time; c) subtracting a reference detector background reading from the spectrum, the reference detector background reading: (1) being derived from the collected detector background readings, and (2) having a background exposure time at least substantially corresponding to the sample exposure time.
 14. The spectrometry method of claim 13 further comprising the steps of: a) storing values representative of the collected detector background readings and their background exposure times; b) selecting from the stored values the collected detector background readings having background exposure times most closely corresponding to the sample exposure time; and c) using these selected detector background readings to derive the reference detector background reading.
 15. The spectrometry method of claim 13 wherein the idle time consists of at least substantially all of the time while the spectrometer is powered except for the data collection time.
 16. A spectrometry method wherein a spectrometer is powered during: i) a data collection time wherein one or more spectra from a sample are collected by a detector, the detector having an array of photosensitive elements therein, and ii) an idle time wherein no spectra from the sample are collected by the detector, the method comprising the steps of: a) collecting background readings from each element within the detector during varying background exposure times occurring within the idle time; wherein the collecting of background readings to produce the varying exposure times further comprises: continuously cycling through ranges of background exposure times before and/or after the data collection time starting at a desired minimum background exposure time and then incrementally increasing the exposure time until some maximum background exposure time is reached, at which point the cycle begins again at the desired minimum background exposure time; b) collecting a spectrum from a sample at each element within the detector, the spectrum being collected during a sample exposure time occurring within the data collection time; c) at each element within the detector, determining a reference detector background reading corresponding to the collected background readings at the element extrapolated to a background exposure time which is at least substantially equal to the sample exposure time; dc) subtracting the reference detector background reading at each element within the detector from the spectrum at each corresponding element. 